package edu.wayne.cs.csc4110.hw6.interfaces.message;

import java.util.List;

import edu.wayne.cs.csc4110.hw6.interfaces.user.User;

public interface Messages {

	/**
	 * Stores the message so that it can be retrieved later
	 * 
	 * @param msg
	 * @return true if message is stored, false otherwise
	 */
	public boolean storeMessage(PrivateMessage msg);

	/**
	 * Gets the messages for the current active user.
	 * 
	 * @param user
	 *            the user to get the messages for
	 * @return a List of type Message
	 */
	public List<PrivateMessage> getMessages(User user);
}
